-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: consistently used target_sources for object libs
- Loading branch information
Showing
23 changed files
with
250 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
add_library(cnfizers OBJECT Cnfizer.cc TermMapper.cc Tseitin.cc) | ||
add_library(cnfizers OBJECT) | ||
|
||
target_sources(cnfizers | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Cnfizer.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/TermMapper.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Tseitin.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Cnfizer.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/TermMapper.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Tseitin.cc" | ||
) | ||
|
||
install(FILES TermMapper.h Tseitin.h Cnfizer.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/cnfizers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
|
||
|
||
add_library(itehandler OBJECT IteToSwitch.cc IteToSwitchMisc.cc IteHandler.cc) | ||
|
||
|
||
add_library(itehandler OBJECT) | ||
|
||
target_sources(itehandler | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/IteToSwitch.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/IteToSwitch.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/IteToSwitchMisc.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/IteHandler.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/IteHandler.cc" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
add_library(logics OBJECT "") | ||
add_library(logics OBJECT) | ||
|
||
target_sources(logics | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/LogicFactory.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/BVLogic.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/BVLogic.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Logic.cc" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Logic.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/LATheory.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/ArrayTheory.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/ArrayHelpers.cc" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ArithLogic.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/ArithLogic.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Theory.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/UFLATheory.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/UFLATheory.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/UFTheory.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/SubstLoopBreaker.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/SubstLoopBreaker.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Logic.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ArithLogic.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/BVLogic.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/LogicFactory.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Theory.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/FunctionTools.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/LogicFactory.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/BVLogic.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Logic.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ArrayTheory.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ArrayHelpers.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ArithLogic.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/LATheory.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/UFLATheory.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/UFLATheory.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/UFTheory.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SubstLoopBreaker.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SubstLoopBreaker.cc" | ||
) | ||
|
||
install(FILES LogicFactory.h Theory.h Logic.h ArithLogic.h BVLogic.h FunctionTools.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/logics) | ||
DESTINATION ${INSTALL_HEADERS_DIR}/logics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
add_library(models OBJECT Model.cc ModelBuilder.cc) | ||
add_library(models OBJECT) | ||
|
||
install(FILES Model.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/models) | ||
target_sources(models | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Model.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Model.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ModelBuilder.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/ModelBuilder.cc" | ||
) | ||
|
||
install(FILES Model.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/models) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
add_library(options OBJECT SMTConfig.cc) | ||
add_library(options OBJECT) | ||
|
||
install(FILES SMTConfig.h DESTINATION ${INSTALL_HEADERS_DIR}/options) | ||
target_sources(options | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SMTConfig.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SMTConfig.cc" | ||
) | ||
|
||
install(FILES SMTConfig.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
add_library(proof OBJECT "") | ||
add_library(proof OBJECT) | ||
|
||
target_sources(proof | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/PG.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGBuild.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGCheck.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGHelp.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGHeuristics.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGMain.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGPrint.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGRules.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PGTransformationAlgorithms.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/InterpolationContext.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/InterpolationContext.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PG.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGBuild.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGCheck.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGHelp.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGHeuristics.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGMain.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGPrint.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGRules.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PGTransformationAlgorithms.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/InterpolationContext.cc" | ||
) | ||
|
||
install(FILES InterpolationContext.h DESTINATION ${INSTALL_HEADERS_DIR}/proof) | ||
install(FILES InterpolationContext.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/proof) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
add_library(pterms OBJECT "") | ||
add_library(pterms OBJECT) | ||
|
||
target_sources(pterms | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/PtStructs.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/PtStore.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Pterm.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/PTRef.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PtStore.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Pterm.cc" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/PtStructs.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PtStructs.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PtStore.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Pterm.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PTRef.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PtStore.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Pterm.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/PtStructs.cc" | ||
) | ||
|
||
install(FILES Pterm.h PtStore.h PTRef.h PtStructs.h DESTINATION ${INSTALL_HEADERS_DIR}/pterms) | ||
install(FILES Pterm.h PtStore.h PTRef.h PtStructs.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/pterms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
add_library(rewriters OBJECT "") | ||
add_library(rewriters OBJECT) | ||
|
||
target_sources(rewriters | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Rewritings.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Substitutor.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Rewriter.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Rewritings.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Rewritings.cc" | ||
) | ||
|
||
install(FILES | ||
Substitutor.h | ||
Rewriter.h | ||
Rewritings.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/rewriters | ||
) | ||
DESTINATION ${INSTALL_HEADERS_DIR}/rewriters) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
add_library(simplifiers OBJECT "") | ||
add_library(simplifiers OBJECT) | ||
|
||
target_sources(simplifiers | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/LA.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/LA.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/BoolRewriting.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/BoolRewriting.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/LA.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/LA.cc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/BoolRewriting.cc" | ||
) | ||
|
||
install(FILES BoolRewriting.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/simplifiers | ||
) | ||
DESTINATION ${INSTALL_HEADERS_DIR}/simplifiers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
add_library(sorts OBJECT SStore.cc) | ||
add_library(sorts OBJECT) | ||
|
||
install(FILES SSort.h SStore.h DESTINATION ${INSTALL_HEADERS_DIR}/sorts) | ||
target_sources(sorts | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SSort.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SStore.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SStore.cc" | ||
) | ||
|
||
install(FILES SSort.h SStore.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/sorts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
add_library(symbols OBJECT "") | ||
add_library(symbols OBJECT) | ||
|
||
target_sources(symbols | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Symbol.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/SymRef.h" | ||
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/SymStore.h" | ||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/SymStore.cc" | ||
PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Symbol.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SymRef.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SymStore.h" | ||
PRIVATE | ||
"${CMAKE_CURRENT_SOURCE_DIR}/SymStore.cc" | ||
) | ||
|
||
install(FILES Symbol.h SymStore.h SymRef.h DESTINATION ${INSTALL_HEADERS_DIR}/symbols) | ||
install(FILES Symbol.h SymStore.h SymRef.h | ||
DESTINATION ${INSTALL_HEADERS_DIR}/symbols) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
target_sources(tsolvers | ||
PUBLIC "${CMAKE_CURRENT_LIST_DIR}/ArraySolver.h" | ||
PRIVATE "${CMAKE_CURRENT_LIST_DIR}/ArraySolver.cc" | ||
) | ||
PRIVATE | ||
"${CMAKE_CURRENT_LIST_DIR}/ArraySolver.h" | ||
"${CMAKE_CURRENT_LIST_DIR}/ArraySolver.cc" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.