From: <ust...@us...> - 2008-07-25 09:50:26
|
Revision: 2817 http://clucene.svn.sourceforge.net/clucene/?rev=2817&view=rev Author: ustramooner Date: 2008-07-25 09:50:22 +0000 (Fri, 25 Jul 2008) Log Message: ----------- import symbols from core Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-25 09:26:39 UTC (rev 2816) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-25 09:50:22 UTC (rev 2817) @@ -46,12 +46,13 @@ #todo: do glob header and include header files for IDE. ADD_EXECUTABLE(cl_test EXCLUDE_FROM_ALL ${clucene_shared_Files} ${test_files} ) -SET_TARGET_PROPERTIES(cl_test PROPERTIES DEFINE_SYMBOL "") IF (TESTS_USE_SHARED_LIBRARY) TARGET_LINK_LIBRARIES(cl_test clucene-core) + SET_TARGET_PROPERTIES(cl_test PROPERTIES DEFINE_SYMBOL "CLUCENE_IMPORT_SYMBOLS") ELSE (TESTS_USE_SHARED_LIBRARY) - TARGET_LINK_LIBRARIES(cl_test clucene-core-static clucene-shared-static) + TARGET_LINK_LIBRARIES(cl_test clucene-core-static) + SET_TARGET_PROPERTIES(cl_test PROPERTIES DEFINE_SYMBOL "") ENDIF (TESTS_USE_SHARED_LIBRARY) ############################ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2008-07-29 10:17:27
|
Revision: 2829 http://clucene.svn.sourceforge.net/clucene/?rev=2829&view=rev Author: ustramooner Date: 2008-07-29 10:17:24 +0000 (Tue, 29 Jul 2008) Log Message: ----------- fix link for cl_test Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-29 10:07:29 UTC (rev 2828) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-29 10:17:24 UTC (rev 2829) @@ -53,9 +53,9 @@ #link the executable against the releavent clucene-shared library (if we aren't using the object files) IF ( NOT USE_SHARED_OBJECT_FILES ) IF ( USE_STATIC_SHARED_LIBRARY ) - TARGET_LINK_LIBRARIES(cl_test clucene-shared-static) + TARGET_LINK_LIBRARIES(cl_test clucene-core clucene-shared-static) ELSE ( USE_STATIC_SHARED_LIBRARY ) - TARGET_LINK_LIBRARIES(cl_test clucene-shared) + TARGET_LINK_LIBRARIES(cl_test clucene-core clucene-shared) ENDIF ( USE_STATIC_SHARED_LIBRARY ) ENDIF ( NOT USE_SHARED_OBJECT_FILES ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2008-07-30 18:21:05
|
Revision: 2834 http://clucene.svn.sourceforge.net/clucene/?rev=2834&view=rev Author: ustramooner Date: 2008-07-30 18:20:59 +0000 (Wed, 30 Jul 2008) Log Message: ----------- only set the special compiler flags (-pednatic and -Wall) on the special compiler tests. Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-30 18:18:57 UTC (rev 2833) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2008-07-30 18:20:59 UTC (rev 2834) @@ -48,7 +48,6 @@ #todo: do glob header and include header files for IDE. ADD_EXECUTABLE(cl_test EXCLUDE_FROM_ALL ${clucene_shared_Files} ${test_files} ) -SET_TARGET_PROPERTIES(cl_test PROPERTIES DEFINE_SYMBOL "") #link the executable against the releavent clucene-shared library (if we aren't using the object files) IF ( NOT USE_SHARED_OBJECT_FILES ) @@ -67,68 +66,91 @@ SET(test_monolithic_Files ./CLMonolithic_Test.cpp ${clucene-core_SOURCE_DIR}/CLucene/CLMonolithic.cpp) -SET(CMAKE_CXX_FLAGS_DEBUG) IF ( CMAKE_COMPILER_IS_GNUCC ) CHECK_CXX_ACCEPTS_FLAG(-Wall GccFlagWall) CHECK_CXX_ACCEPTS_FLAG(-pedantic GccFlagPedantic) ENDIF ( CMAKE_COMPILER_IS_GNUCC ) + +SET (TESTS_CXX_FLAGS ) +SET (TESTS_EXE_LINKER_FLAGS) IF ( GccFlagG ) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") + SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -g") ENDIF ( GccFlagG ) IF ( GccFlagWall ) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wall") + SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -Wall") + SET(TESTS_EXE_LINKER_FLAGS "${TESTS_EXE_LINKER_FLAGS} -Wall") ENDIF ( GccFlagWall ) IF ( GccFlagPedantic ) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic") - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pedantic") + SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -pedantic") + SET(TESTS_EXE_LINKER_FLAGS "${TESTS_EXE_LINKER_FLAGS} -pedantic") ENDIF ( GccFlagPedantic ) ADD_EXECUTABLE(cl_test-pedantic EXCLUDE_FROM_ALL ${test_monolithic_Files}) -SET_TARGET_PROPERTIES(cl_test-pedantic PROPERTIES COMPILE_DEFINITIONS "") +SET_TARGET_PROPERTIES(cl_test-pedantic PROPERTIES + COMPILE_DEFINITIONS "" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-pedantic COMMENT "Running cl_test-pedantic" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic DEPENDS cl_test-pedantic) ADD_EXECUTABLE(cl_test-ascii EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-ascii PROPERTIES COMPILE_DEFINITIONS "_ASCII") +SET_TARGET_PROPERTIES(cl_test-ascii PROPERTIES + COMPILE_DEFINITIONS "_ASCII" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-ascii COMMENT "Running cl_test-ascii" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-ascii DEPENDS cl_test-ascii) ADD_EXECUTABLE(cl_test-namespace EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-namespace PROPERTIES COMPILE_DEFINITIONS "DISABLE_NAMESPACE") +SET_TARGET_PROPERTIES(cl_test-namespace PROPERTIES + COMPILE_DEFINITIONS "DISABLE_NAMESPACE" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-namespace COMMENT "Running cl_test-namespace" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-namespace DEPENDS cl_test-namespace) ADD_EXECUTABLE(cl_test-mmap EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-mmap PROPERTIES COMPILE_DEFINITIONS "LUCENE_FS_MMAP") +SET_TARGET_PROPERTIES(cl_test-mmap PROPERTIES + COMPILE_DEFINITIONS "LUCENE_FS_MMAP" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-mmap COMMENT "Running cl_test-mmap" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-mmap DEPENDS cl_test-mmap) ADD_EXECUTABLE(cl_test-singlethreading EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-singlethreading PROPERTIES COMPILE_DEFINITIONS "_CL_DISABLE_MULTITHREADING") +SET_TARGET_PROPERTIES(cl_test-singlethreading PROPERTIES + COMPILE_DEFINITIONS "_CL_DISABLE_MULTITHREADING" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-singlethreading COMMENT "Running cl_test-singlethreading" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-singlethreading DEPENDS cl_test-singlethreading) ADD_EXECUTABLE(cl_test-refcnt EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-refcnt PROPERTIES COMPILE_DEFINITIONS "LUCENE_ENABLE_REFCOUNT") +SET_TARGET_PROPERTIES(cl_test-refcnt PROPERTIES + COMPILE_DEFINITIONS "LUCENE_ENABLE_REFCOUNT" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) ADD_CUSTOM_TARGET(test-refcnt COMMENT "Running cl_test-refcnt" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-refcnt DEPENDS cl_test-refcnt) ADD_EXECUTABLE(cl_test-platform-charfuncs EXCLUDE_FROM_ALL ${test_monolithic_Files} ) -SET_TARGET_PROPERTIES(cl_test-platform-charfuncs PROPERTIES COMPILE_DEFINITIONS "LUCENE_USE_INTERNAL_CHAR_FUNCTIONS=0") +SET_TARGET_PROPERTIES(cl_test-platform-charfuncs PROPERTIES + COMPILE_DEFINITIONS "LUCENE_USE_INTERNAL_CHAR_FUNCTIONS=0" + COMPILE_FLAGS ${TESTS_CXX_FLAGS} + LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) #this one just tests that the compile works... tests will (mostly) fail, since the #internal functions do not produce the exact results expected. ADD_CUSTOM_TARGET(test-platform-charfuncs @@ -136,8 +158,6 @@ COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-platform-charfuncs DEPENDS cl_test-platform-charfuncs) -SET(CMAKE_CXX_FLAGS_DEBUG) - #target for running all tests ADD_CUSTOM_TARGET(test-all COMMAND ${CMAKE_COMMAND} test-pedantic This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2008-08-03 10:28:34
|
Revision: 2854 http://clucene.svn.sourceforge.net/clucene/?rev=2854&view=rev Author: ustramooner Date: 2008-08-03 10:28:30 +0000 (Sun, 03 Aug 2008) Log Message: ----------- make test-all work Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2008-08-03 10:03:19 UTC (rev 2853) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2008-08-03 10:28:30 UTC (rev 2854) @@ -160,12 +160,12 @@ #target for running all tests ADD_CUSTOM_TARGET(test-all - COMMAND ${CMAKE_COMMAND} test-pedantic - COMMAND ${CMAKE_COMMAND} test-ascii - COMMAND ${CMAKE_COMMAND} test-namespace - COMMAND ${CMAKE_COMMAND} test-mmap - COMMAND ${CMAKE_COMMAND} test-singlethreading - COMMAND ${CMAKE_COMMAND} test-refcnt + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-ascii + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-namespace + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-mmap + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-singlethreading + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-refcnt DEPENDS cl_test-pedantic cl_test-ascii cl_test-namespace cl_test-mmap cl_test-singlethreading cl_test-refcnt cl_test-platform-charfuncs ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2008-08-15 13:14:22
|
Revision: 2865 http://clucene.svn.sourceforge.net/clucene/?rev=2865&view=rev Author: ustramooner Date: 2008-08-15 13:14:15 +0000 (Fri, 15 Aug 2008) Log Message: ----------- fixed cmake for bcc (when something is not defined, there weren't enough parameters to the function) Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2008-08-15 13:13:40 UTC (rev 2864) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2008-08-15 13:14:15 UTC (rev 2865) @@ -73,7 +73,7 @@ SET (TESTS_CXX_FLAGS ) -SET (TESTS_EXE_LINKER_FLAGS) +SET (TESTS_EXE_LINKER_FLAGS "") IF ( GccFlagG ) SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -g") ENDIF ( GccFlagG ) @@ -89,8 +89,8 @@ ADD_EXECUTABLE(cl_test-pedantic EXCLUDE_FROM_ALL ${test_monolithic_Files}) SET_TARGET_PROPERTIES(cl_test-pedantic PROPERTIES COMPILE_DEFINITIONS "" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-pedantic COMMENT "Running cl_test-pedantic" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic @@ -99,8 +99,8 @@ ADD_EXECUTABLE(cl_test-ascii EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-ascii PROPERTIES COMPILE_DEFINITIONS "_ASCII" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-ascii COMMENT "Running cl_test-ascii" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-ascii @@ -109,8 +109,8 @@ ADD_EXECUTABLE(cl_test-namespace EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-namespace PROPERTIES COMPILE_DEFINITIONS "DISABLE_NAMESPACE" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-namespace COMMENT "Running cl_test-namespace" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-namespace @@ -119,8 +119,8 @@ ADD_EXECUTABLE(cl_test-mmap EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-mmap PROPERTIES COMPILE_DEFINITIONS "LUCENE_FS_MMAP" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-mmap COMMENT "Running cl_test-mmap" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-mmap @@ -129,8 +129,8 @@ ADD_EXECUTABLE(cl_test-singlethreading EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-singlethreading PROPERTIES COMPILE_DEFINITIONS "_CL_DISABLE_MULTITHREADING" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-singlethreading COMMENT "Running cl_test-singlethreading" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-singlethreading @@ -139,8 +139,8 @@ ADD_EXECUTABLE(cl_test-refcnt EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-refcnt PROPERTIES COMPILE_DEFINITIONS "LUCENE_ENABLE_REFCOUNT" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") ADD_CUSTOM_TARGET(test-refcnt COMMENT "Running cl_test-refcnt" COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-refcnt @@ -149,8 +149,8 @@ ADD_EXECUTABLE(cl_test-platform-charfuncs EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-platform-charfuncs PROPERTIES COMPILE_DEFINITIONS "LUCENE_USE_INTERNAL_CHAR_FUNCTIONS=0" - COMPILE_FLAGS ${TESTS_CXX_FLAGS} - LINK_FLAGS ${TESTS_EXE_LINKER_FLAGS}) + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") #this one just tests that the compile works... tests will (mostly) fail, since the #internal functions do not produce the exact results expected. ADD_CUSTOM_TARGET(test-platform-charfuncs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2009-03-30 21:56:27
|
Revision: 2980 http://clucene.svn.sourceforge.net/clucene/?rev=2980&view=rev Author: ustramooner Date: 2009-03-30 21:56:15 +0000 (Mon, 30 Mar 2009) Log Message: ----------- make only pedantic tests pedantic Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2009-03-30 21:46:25 UTC (rev 2979) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2009-03-30 21:56:15 UTC (rev 2980) @@ -79,21 +79,7 @@ SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -Wall") SET(TESTS_EXE_LINKER_FLAGS "${TESTS_EXE_LINKER_FLAGS} -Wall") ENDIF ( GccFlagWall ) -IF ( GccFlagPedantic ) - SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -pedantic") - SET(TESTS_EXE_LINKER_FLAGS "${TESTS_EXE_LINKER_FLAGS} -pedantic") -ENDIF ( GccFlagPedantic ) -ADD_EXECUTABLE(cl_test-pedantic EXCLUDE_FROM_ALL ${test_monolithic_Files}) -SET_TARGET_PROPERTIES(cl_test-pedantic PROPERTIES - COMPILE_DEFINITIONS "" - COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" - LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") -ADD_CUSTOM_TARGET(test-pedantic - COMMENT "Running cl_test-pedantic" - COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic - DEPENDS cl_test-pedantic) - ADD_EXECUTABLE(cl_test-ascii EXCLUDE_FROM_ALL ${test_monolithic_Files} ) SET_TARGET_PROPERTIES(cl_test-ascii PROPERTIES COMPILE_DEFINITIONS "_ASCII" @@ -156,6 +142,22 @@ COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-platform-charfuncs DEPENDS cl_test-platform-charfuncs) +#this one last so we only have pedantic for test-pedantic +IF ( GccFlagPedantic ) + SET(TESTS_CXX_FLAGS "${TESTS_CXX_FLAGS} -pedantic") + SET(TESTS_EXE_LINKER_FLAGS "${TESTS_EXE_LINKER_FLAGS} -pedantic") +ENDIF ( GccFlagPedantic ) +ADD_EXECUTABLE(cl_test-pedantic EXCLUDE_FROM_ALL ${test_monolithic_Files}) +SET_TARGET_PROPERTIES(cl_test-pedantic PROPERTIES + COMPILE_DEFINITIONS "" + COMPILE_FLAGS "${TESTS_CXX_FLAGS} -DMAKE_CLUCENE_SHARED_LIB -DMAKE_CLUCENE_CORE_LIB" + LINK_FLAGS "${TESTS_EXE_LINKER_FLAGS}") +ADD_CUSTOM_TARGET(test-pedantic + COMMENT "Running cl_test-pedantic" + COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic + DEPENDS cl_test-pedantic) + + #target for running all tests ADD_CUSTOM_TARGET(test-all COMMAND ${EXECUTABLE_OUTPUT_PATH}/cl_test-pedantic This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ust...@us...> - 2009-06-11 16:19:04
|
Revision: 3008 http://clucene.svn.sourceforge.net/clucene/?rev=3008&view=rev Author: ustramooner Date: 2009-06-11 16:19:00 +0000 (Thu, 11 Jun 2009) Log Message: ----------- easier to debug when core is compiled before test code... Modified Paths: -------------- branches/lucene2_3_2/src/test/CMakeLists.txt Modified: branches/lucene2_3_2/src/test/CMakeLists.txt =================================================================== --- branches/lucene2_3_2/src/test/CMakeLists.txt 2009-06-11 16:18:14 UTC (rev 3007) +++ branches/lucene2_3_2/src/test/CMakeLists.txt 2009-06-11 16:19:00 UTC (rev 3008) @@ -62,7 +62,7 @@ IF ( ENABLE_COMPILE_TESTS ) -SET(test_monolithic_Files ./CLMonolithic_Test.cpp ${clucene-core_SOURCE_DIR}/CLucene/CLMonolithic.cpp) +SET(test_monolithic_Files ${clucene-core_SOURCE_DIR}/CLucene/CLMonolithic.cpp ./CLMonolithic_Test.cpp) IF ( CMAKE_COMPILER_IS_GNUCC ) CHECK_CXX_ACCEPTS_FLAG(-Wall GccFlagWall) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |