Skip to content

Commit

Permalink
Fixing CMakeLists.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
SySyAli committed Jan 4, 2024
1 parent 6177f61 commit 19b7c6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ set(SOURCE_FILES
)

# Make the project root directory the working directory when we run
# TODO: Add something about X11
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
add_executable(tests ${SOURCE_FILES})
target_link_libraries(tests gtest gtest_main ${SQLite3_LIBRARIES})
if(UNIX AND NOT APPLE)
target_link_libraries(tests ${X11_LIBRARIES} pthread)
endif()
target_include_directories(tests PRIVATE ${SQLite3_INCLUDE_DIRS})

0 comments on commit 19b7c6d

Please sign in to comment.