Commits

Pierre Joye committed b6b1941

fix test build, missing gd_lib, TODO: run tests twice for static and shared builds (as they are done at the same time by default)

Comments (0)

Files changed (2)

tests/bmp/CMakeLists.txt

 
 FOREACH(test_name ${TESTS_FILES})
 	add_executable(${test_name} "${test_name}.c")
-	target_link_libraries (${test_name} gdTest)
+	target_link_libraries (${test_name} gdTest ${GD_LIB})
 	get_target_property(test_path ${test_name} LOCATION)
 	ADD_TEST(${test_name} ${test_path})
 ENDFOREACH(test_name)

tests/gdtest/CMakeLists.txt

 SET(GDTEST_TOP_DIR "${GD_SOURCE_DIR}/tests")
 CONFIGURE_FILE(test_config.h.cmake test_config.h ESCAPE_QUOTES)
 add_library (gdTest STATIC gdtest.c)
-target_link_libraries(gdTest ${GD_LIB_STATIC})
+target_link_libraries(gdTest ${GD_LIB})