Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael.Wipplinger authored and xR3b0rn committed Jan 1, 2024
1 parent 6306b50 commit 9e40297
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
cmake_minimum_required(VERSION 3.12)

project("libdbcppp" VERSION 3.8.0)
project("dbcppp" VERSION 3.8.0)

# CONFIGURATION

set(CMAKE_CXX_STANDARD 17)
option(build_kcd "Enable support for KCD parsing" ON)
option(build_tools "Build dbcppp utility application" ON)

Expand All @@ -13,10 +14,6 @@ option(build_examples "Build examples" ON)

# DEPENDENCIES & Requirements

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_STATIC_LIBRARY_PREFIX "")
set(CMAKE_SHARED_LIBRARY_PREFIX "")

find_package(Boost)

if(NOT Boost_FOUND)
Expand Down Expand Up @@ -74,6 +71,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/dbcppp>
$<INSTALL_INTERFACE:include/dbcppp>
include/
)

# INSTALL LIBRARY
Expand Down
12 changes: 6 additions & 6 deletions tools/dbcppp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.14)

add_executable(dbcppp main.cpp)
add_dependencies(dbcppp ${PROJECT_NAME})
target_link_libraries(dbcppp ${PROJECT_NAME} ${Boost_LIBRARIES} cxxopts)
project(dbcparser LANGUAGES CXX)

install(
TARGETS dbcppp
DESTINATION ${CMAKE_INSTALL_BINDIR})
add_executable(${PROJECT_NAME} main.cpp)
add_dependencies(${PROJECT_NAME} dbcppp)
target_link_libraries(${PROJECT_NAME} dbcppp ${Boost_LIBRARIES} cxxopts)

install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})

0 comments on commit 9e40297

Please sign in to comment.