Skip to content

Commit e9c914c

Browse files
committed
Changes for v0.2.0
1 parent f577c84 commit e9c914c

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

CMakeLists.txt

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
cmake_minimum_required(VERSION "3.12")
22

3-
project("spackexample" VERSION 0.1.0)
3+
project("spackexample" VERSION 0.2.0)
4+
5+
find_package(Boost
6+
1.65.1
7+
REQUIRED
8+
filesystem
9+
)
410

5-
#find_package(Boost
6-
# 1.65.1
7-
# REQUIRED
8-
# filesystem
9-
# )
10-
#
1111
#find_package(yaml-cpp
1212
# 0.7.0
1313
# REQUIRED
1414
# )
1515

16-
#add_library(spackexamplelib filesystem/filesystem.cpp fem/fem.cpp flatset/flatset.cpp yamlParser/yamlParser.cpp)
16+
add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp)
17+
#add_library(spackexamplelib filesystem/filesystem.cpp flatset/flatset.cpp yamlParser/yamlParser.cpp)
1718

18-
#set_target_properties(spackexamplelib
19-
# PROPERTIES
20-
# PUBLIC_HEADER filesystem/filesystem.hpp
21-
# PUBLIC_HEADER fem/fem.hpp
22-
# PUBLIC_HEADER flatset/flatset.hpp
23-
# PUBLIC_HEADER yamlParser/yamlParser.hpp
24-
# )
19+
set_target_properties(spackexamplelib
20+
PROPERTIES
21+
PUBLIC_HEADER filesystem/filesystem.hpp
22+
PUBLIC_HEADER flatset/flatset.hpp
23+
PUBLIC_HEADER yamlParser/yamlParser.hpp
24+
)
2525

2626
add_executable(spackexample main.cpp)
27-
#target_link_libraries(spackexample spackexamplelib)
27+
target_link_libraries(spackexample spackexamplelib)
28+
target_link_libraries(spackexamplelib Boost::filesystem)
2829
#target_link_libraries(spackexamplelib Boost::filesystem ${YAML_CPP_LIBRARIES})
2930

30-
#target_include_directories(spackexamplelib
31-
# PRIVATE
32-
# ${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
33-
# PUBLIC
34-
# $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
35-
# $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
36-
# )
31+
target_include_directories(spackexamplelib
32+
PRIVATE
33+
${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib
34+
PUBLIC
35+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/spackexamplelib>
36+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/spackexamplelib>
37+
)
3738

3839
# Create install targets
3940
include(GNUInstallDirs)
40-
install(TARGETS spackexample
41-
#install(TARGETS spackexample spackexamplelib
41+
install(TARGETS spackexample spackexamplelib
4242
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
4343
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
4444
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}

main.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
//#include "flatset/flatset.hpp"
2-
//#include "filesystem/filesystem.hpp"
1+
#include "flatset/flatset.hpp"
2+
#include "filesystem/filesystem.hpp"
33
//#include "yamlParser/yamlParser.hpp"
44
#include <iostream>
55

66
int main(int argc, char *argv[])
77
{
88
std::cout << "Let's fight with CMake, Docker, and some dependencies!" << std::endl << std::endl;
99

10-
// std::cout << "Modify a flat set using boost container" << std::endl;
11-
// modifyAndPrintSets();
12-
// std::cout << std::endl;
10+
std::cout << "Modify a flat set using boost container" << std::endl;
11+
modifyAndPrintSets();
12+
std::cout << std::endl;
1313

14-
// std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15-
// inspectDirectory();
16-
// std::cout << std::endl;
14+
std::cout << "Inspect the current directory using boost filesystem" << std::endl;
15+
inspectDirectory();
16+
std::cout << std::endl;
1717

18-
// if ( argc == 2 )
19-
// {
20-
// const std::string yamlFile( argv[1] );
21-
// std::cout << "Parse some yaml file with yaml-cpp" << std::endl;
22-
// std::cout << " " << yamlFile << std::endl;
23-
// parseConfig( yamlFile );
24-
// }
18+
//if ( argc == 2 )
19+
//{
20+
// const std::string yamlFile( argv[1] );
21+
// std::cout << "Parse some yaml file with yaml-cpp" << std::endl;
22+
// std::cout << " " << yamlFile << std::endl;
23+
// parseConfig( yamlFile );
24+
//}
2525

2626
return 0;
2727
}

0 commit comments

Comments
 (0)