cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES test.c ) add_executable(paltest_formatmessagew_test4 ${SOURCES} ) add_dependencies(paltest_formatmessagew_test4 coreclrpal) target_link_libraries(paltest_formatmessagew_test4 pthread m coreclrpal )