Blame doc/example/tests/CMakeLists.txt
|
Packit |
0b5880 |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
|
|
Packit |
0b5880 |
|
|
Packit |
0b5880 |
# If pkg-config is not installed on the system, then the
|
|
Packit |
0b5880 |
# CHECK_INSTALL_DIR variable must be set to the install
|
|
Packit |
0b5880 |
# location of Check. For example, on Windows, this may
|
|
Packit |
0b5880 |
# be: C:/Program Files/check
|
|
Packit |
0b5880 |
# set(CHECK_INSTALL_DIR "C:/Program Files/check")
|
|
Packit |
0b5880 |
|
|
Packit |
0b5880 |
find_package(Check REQUIRED)
|
|
Packit |
0b5880 |
include_directories(${CHECK_INCLUDE_DIRS})
|
|
Packit |
0b5880 |
link_directories(${CHECK_LIBRARY_DIRS})
|
|
Packit |
0b5880 |
|
|
Packit |
0b5880 |
set(TEST_SOURCES
|
|
Packit |
0b5880 |
check_money.c
|
|
Packit |
0b5880 |
)
|
|
Packit |
0b5880 |
|
|
Packit |
0b5880 |
add_executable(check_money ${TEST_SOURCES})
|
|
Packit |
0b5880 |
target_link_libraries(check_money money ${CHECK_LIBRARIES})
|