chiark / gitweb /
renamed to testopt.c, add nlopt-getopt.c dependency
authorAmro <amroamroamro@gmail.com>
Mon, 5 Sep 2016 11:54:58 +0000 (14:54 +0300)
committerJulien Schueller <schueller@phimeca.com>
Thu, 24 Aug 2017 08:33:43 +0000 (10:33 +0200)
test/CMakeLists.txt

index e17d12763db6dc3a14ba49f0f8f603596681e9da..90ac1ef12d9ddde79c904e53ff6387833a97182f 100644 (file)
@@ -1,7 +1,8 @@
 add_custom_target (tests)
 
 # have to add timer.c and mt19937ar.c as symbols are declared extern
-add_executable (testopt testfuncs.c testfuncs.h testopt.cpp ${PROJECT_SOURCE_DIR}/util/timer.c ${PROJECT_SOURCE_DIR}/util/mt19937ar.c)
+add_executable (testopt testfuncs.c testfuncs.h testopt.c
+  ${PROJECT_SOURCE_DIR}/util/timer.c ${PROJECT_SOURCE_DIR}/util/mt19937ar.c ${CMAKE_SOURCE_DIR}/util/nlopt-getopt.c)
 target_link_libraries (testopt ${nlopt_lib})
 target_include_directories (testopt PRIVATE ${NLOPT_PRIVATE_INCLUDE_DIRS})
 add_dependencies (tests testopt)