From cc7c2f8de871a8d8f14c48d728dff702d268bb28 Mon Sep 17 00:00:00 2001 From: Amro Date: Mon, 5 Sep 2016 14:54:58 +0300 Subject: [PATCH] renamed to testopt.c, add nlopt-getopt.c dependency --- test/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2