neglect / neglect / tests / CMakeLists.txt

set(SOURCES
    src/main.cpp
    src/test_vectors.cpp
    src/test_matrix.cpp
    src/test_quaternion.cpp
    src/test_format.cpp
    src/test_path.cpp
    src/test_platform.cpp
)
set(HEADERS
)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
	${CMAKE_CURRENT_SOURCE_DIR}/../cpplib/include
	${CMAKE_CURRENT_SOURCE_DIR}/../clib/include
)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../neglect)

add_executable(neglect_tests ${SOURCES} ${HEADERS})
target_link_libraries(neglect_tests neglect)

if (WIN32)
	add_custom_command(TARGET neglect_tests
		POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy_if_different
            "${ZLIB_LIBRARY}/../zlib1.dll"
            "${CMAKE_CURRENT_BINARY_DIR}/zlib1.dll"
	)
endif()

enable_testing()
add_test(neglect_tests ${CMAKE_CURRENT_BINARY_DIR}/neglect_tests)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.