[CMake] Cmake parsing issue on Win32 platform

Andy Cedilnik andy.cedilnik at kitware.com
Tue Apr 25 08:08:59 EDT 2006


Hi Xavier,

Also, what version of CMake?

       Andy

Xavier Delannoy wrote:
> On Tue, 25 Apr 2006 07:28:22 -0400
> Andy Cedilnik <andy.cedilnik at kitware.com> wrote:
>
>   
>> Hi Xavier,
>>
>> For some reason all paths in DartTestfile.txt are windows style. What do 
>> your ADD_TEST commands look like?
>>
>>     
>
> here is my CMakeLists.txt where I use the ADD_TEST command : 
>
>
> SET(EXECUTABLE_OUTPUT_PATH "$ENV{BUILDTESTDIR}")
>
> # force to enable test
> ENABLE_TESTING()
> #INCLUDE(Dart)
>
> # C tests
> FOREACH(test
>     test_section
>     test_network
>     test_str
>     test_system
>     )
>   ADD_EXECUTABLE(${test} ${test}.c)
>   TARGET_LINK_LIBRARIES(${test} ntest nbase_static)
> ENDFOREACH(test)
>
> # -- Section Test -- #
> ADD_TEST(libnbase.section_parseline ${EXECUTABLE_OUTPUT_PATH}/test_section 1)
> ADD_TEST(libnbase.section_new ${EXECUTABLE_OUTPUT_PATH}/test_section 2)
> ADD_TEST(libnbase.sec_remove_marked_elements ${EXECUTABLE_OUTPUT_PATH}/test_section 3)
> ADD_TEST(libnbase.sec_load_from_context ${EXECUTABLE_OUTPUT_PATH}/test_section 4)    
> ADD_TEST(libnbase.sec_get_names_from_context ${EXECUTABLE_OUTPUT_PATH}/test_section 5)
> ADD_TEST(libnbase.sec_add_at_pos ${EXECUTABLE_OUTPUT_PATH}/test_section 6)
> ADD_TEST(libnbase.section_deltoken ${EXECUTABLE_OUTPUT_PATH}/test_section 7)
> ADD_TEST(libnbase.section_getstr ${EXECUTABLE_OUTPUT_PATH}/test_section 8)
> ADD_TEST(libnbase.section_addstr ${EXECUTABLE_OUTPUT_PATH}/test_section 9)
> ADD_TEST(libnbase.section_clear ${EXECUTABLE_OUTPUT_PATH}/test_section 10)
> ADD_TEST(libnbase.section_write ${EXECUTABLE_OUTPUT_PATH}/test_section 11)
> ADD_TEST(libnbase.writestrtosection ${EXECUTABLE_OUTPUT_PATH}/test_section 12)
> ADD_TEST(libnbase.sec_loadall_from_context ${EXECUTABLE_OUTPUT_PATH}/test_section 13)
>
>
> BUILDTESTDIR is defined in .bat file. this file looks like : 
>
> @set BUILDROOTDIR=%cd%
>
> @set BUILDDESTLIB=%BUILDROOTDIR%\tmp
> @set BUILDTESTDIR=%BUILDROOTDIR%\tmp\test
> @set BUILDDESTSRC=%BUILDROOTDIR%\tmp
>
>
> best regards, 
>
> Xavier 
>   




More information about the CMake mailing list