comparison CMakeLists.txt @ 39:f23fa42238dc

Order inputs in CMakeLists.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Fri, 07 Sep 2012 13:14:55 +0200
parents 769f43c4c5d0
children 877327e9061a
comparison
equal deleted inserted replaced
38:7905fa8a3f1b 39:f23fa42238dc
31 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}) 31 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
32 32
33 33
34 SET(CLASS_SOURCES 34 SET(CLASS_SOURCES
35 BitDecoder.cpp 35 BitDecoder.cpp
36 ConfigurationProcessing.cpp
36 DataController.cpp 37 DataController.cpp
37 HuffmanString.cpp
38 HuffmanSet.cpp
39 EditDistance.cpp 38 EditDistance.cpp
40 Exception/IOException.cpp 39 Exception/IOException.cpp
41 Exception/SQLException.cpp 40 Exception/SQLException.cpp
42 FileDBLink.cpp 41 FileDBLink.cpp
42 HuffmanSet.cpp
43 HuffmanString.cpp
44 MemoryDBLink.cpp
43 SqliteDBLink.cpp 45 SqliteDBLink.cpp
44 MemoryDBLink.cpp
45 ConfigurationProcessing.cpp
46 UniqueString.cpp 46 UniqueString.cpp
47 ) 47 )
48 48
49 SET(CLASS_HEADERS 49 SET(CLASS_HEADERS
50 ConfigurationProcessing.hpp
50 DataController.hpp 51 DataController.hpp
51 EditDistance.hpp 52 EditDistance.hpp
52 Exception/IOException.hpp 53 Exception/IOException.hpp
53 FileDBLink.hpp 54 FileDBLink.hpp
55 MemoryDBLink.hpp
56 RBTree.hpp
54 SqliteDBLink.hpp 57 SqliteDBLink.hpp
55 MemoryDBLink.hpp
56 ConfigurationProcessing.hpp
57 UniqueString.hpp 58 UniqueString.hpp
58 RBTree.hpp
59 ) 59 )
60 60
61 SET(MOC_HEADERS 61 SET(MOC_HEADERS
62 DataController.hpp 62 DataController.hpp
63 ) 63 )
64 64
65 # Returns the moc_xxx.cpp files in the foo_MOC_SRCS variable 65 # Returns the moc_xxx.cpp files in the foo_MOC_SRCS variable
66 QT4_WRAP_CPP(MOC_SOURCES ${MOC_HEADERS}) 66 QT4_WRAP_CPP(MOC_SOURCES ${MOC_HEADERS})
67 67
68 SET(SOURCES 68 SET(SOURCES
69 ${CLASS_HEADERS}
69 ${CLASS_SOURCES} 70 ${CLASS_SOURCES}
70 ${CLASS_HEADERS}
71 ${MOC_SOURCES} 71 ${MOC_SOURCES}
72 ) 72 )
73 73
74 SET(TEST_SOURCES 74 SET(TEST_SOURCES
75 ${CLASS_SOURCES} 75 ${CLASS_SOURCES}
86 86
87 ADD_EXECUTABLE(updateDeDupe Apps/updateDeDupe.cpp ${SOURCES} ${MOC_SOURCES}) 87 ADD_EXECUTABLE(updateDeDupe Apps/updateDeDupe.cpp ${SOURCES} ${MOC_SOURCES})
88 TARGET_LINK_LIBRARIES(updateDeDupe ${QT_LIBRARIES} ${SQLITE3_LIBRARIES} ${Boost_LIBRARIES}) 88 TARGET_LINK_LIBRARIES(updateDeDupe ${QT_LIBRARIES} ${SQLITE3_LIBRARIES} ${Boost_LIBRARIES})
89 89
90 ENABLE_TESTING() 90 ENABLE_TESTING()
91 NEW_TEST(TestBitDecoder)
92 NEW_TEST(TestDBCache)
91 NEW_TEST(TestEditDistance) 93 NEW_TEST(TestEditDistance)
92 NEW_TEST(TestDBCache) 94 NEW_TEST(TestHuffmanString)
95 NEW_TEST(TestRBTree)
93 NEW_TEST(TestSqliteDBLink) 96 NEW_TEST(TestSqliteDBLink)
94 NEW_TEST(TestRBTree)
95 NEW_TEST(TestHuffmanString)
96 NEW_TEST(TestBitDecoder)
97 97
98 #ADD_PRECOMPILED_HEADER(TestEditDistance TestFramework.hpp) 98 #ADD_PRECOMPILED_HEADER(TestEditDistance TestFramework.hpp)