From: Amro Date: Mon, 5 Sep 2016 11:54:58 +0000 (+0300) Subject: renamed to testopt.c, add nlopt-getopt.c dependency X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cc7c2f8de871a8d8f14c48d728dff702d268bb28;p=nlopt.git renamed to testopt.c, add nlopt-getopt.c dependency --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e17d127..90ac1ef 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)